package com.lq.eureka;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class MqReceiver {

    @RabbitListener(queues = "myQueue")
    public void process(String msg) {
        System.out.println(" mq receive msg: " + msg);
    }
}
